/// <reference name="MicrosoftAjax.js"/>
/// <reference path="~/Clients/Scripts/jQuery/jquery-1.6.1-vsdoc.js"/>

(function($) {
    $.fn.component = function() {
        if (this.length === 0) {
            return undefined;
        }
        if (this.length !== 1) {
            debugger;
            throw "Number of selected elements must be 1";
        }
        var el = this[0];
        var id = el.id;
        if (!id) {
            debugger;
            throw "Selected element must have id";
        }
        return $find(id);
    };
})(jQuery);
